//
//  WCImageView +setImage.h
//  WC
//
//  Created by wsj2015 on 15/9/7.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UIImageView+WebCache.h"
@interface UIImageView (setImage)


//通过sdimage  设置头像的方法
-(void)setImageWithUrl:(NSString *)url;

//设置门诊分类的方法
-(void)setCateImageWithUrl:(NSString *)url;


- (void)setOrderInforImageWithUrl:(NSString *)url;
/**
 *  点击小图获取大图 展示
 *
 *  @param imageAvtarId 图片网址标示
 *  @param vc           控制器
 */
- (void)zoomImageFromUrl:(NSString *)imageAvtarId fromViewController:(UIViewController *)vc;

- (void)zoomImagefromImage:(UIImage *)image fromViewController:(UIViewController *)vc;
/**
 *  返回image 的设置
 *
 *  @param url          <#url description#>
 *  @param successBlock <#successBlock description#>
 */
-(void)wsjSetBigImageWithUrl:(NSString *)url successBlock:(void(^)(UIImage  *image))successBlock;
/**
 *  设置大图
 *
 *  @param url            <#url description#>
 *  @param placeImageName <#placeImageName description#>
 */
-(void)wsjSetBigImageWithUrl:(NSString *)url withPlaceImageName:(NSString *)placeImageName successBlock:(void(^)(CGSize imageSize))successBlock;
-(void)wsjSetImageWithUrl:(NSString *)url withPlaceImageName:(NSString *)placeImageName;

-(void)wsjSetBigImageWithUrl:(NSString *)url withPlaceImageName:(NSString *)placeImageName successImageBlock:(void(^)(UIImage *image))successImageBlock;

+ (NSString *)getimageUrlForMedia;

@end
